import os

# 会话密钥
SECRET_KEY = os.environ.get('SECRET_KEY', 'default_secret_key')

# mysql配置
HOSTNAME = 'localhost'
PORT = 3306
USERNAME = 'root'
PASSWORD = 'root'
DATABASE = 'zhiliaooa'
MySQL_config = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}'
SQLALCHEMY_DATABASE_URI = MySQL_config
SQLALCHEMY_TRACK_MODIFICATIONS = False

# 邮箱配置
MAIL_SERVER = 'smtp.qq.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = 'xxx@qq.com'
MAIL_PASSWORD = 'xxx'
MAIL_DEFAULT_SENDER = 'xxx@qq.com'
